@echo OFF
@set a=0
:Menu
title YuanYun Bedrock Edition Server Ver. 5.5  Number of restarts[%a%]
echo        Now the time is%time%   Today is%date%
echo ============================================================
echo        Minecraft 1.16.3 Turning on... [Number of restarts: %a%]
echo ============================================================
echo        Power By Round-Minceraft Team
echo        2021.6.15
echo        Ver 20216151726
echo ============================================================
echo        Design by znc15
echo ============================================================

java -Xmx2048M -Xms2048M -jar spigot-1.16.5.jar nogui

@echo OFF
@echo 服务器已关闭，将于20秒后重启
@ping -n 10 127.0.0.1>nul
@set /a a=%a%+1
@goto Menu
pause